package org.lejos.example;

// ArcDemo.java
// leftArc, rightArc, backward

import gin.and.tonic.*;

public class ArcDemo
{
  public ArcDemo()
  {
    NxtRobot robot = new NxtRobot(true);
    Gear gear = new Gear();
    robot.addPart(gear);

    gear.leftArc(0.5, 3000);
    gear.rightArc(0.5, 3000);
    gear.rightArc(-0.5, 3000);  // backward

    robot.exit();
  }

  public static void main(String[] args)
  {
    new ArcDemo();
  }
}
